package com.yhsoft.goods.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 商品sku关联表
 * </p>
 *
 * @author yyyyyyyh
 * @since 2023-09-22
 */
@TableName("g_good_sku")
@Data
public class GoodSku implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * sku名称
     */
    private String skuName;

    /**
     * 商品id
     */
    private Integer goodsId;

    /**
     * skuid
     */
    private Integer skuId;

    /**
     * 逻辑删除
     */
    private Integer deleted;

    /**
     * 创建人
     */
    @TableField(fill = FieldFill.INSERT)
    private String createdBy;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private LocalDateTime createTime;

}
